import request from '@/utils/request'

// 查询来访登记统计列表
export function getOrgDistributeDataStatics(queryType, timeGroup) {
  return request({
    url: '/crmsys/custStatics/getOrgDistributeDataStatics/' + queryType + "/" + timeGroup,
    method: 'get'
  })
}
// 日内部数据统计
export function getDailyInnerDatas(timeGroup, deptId,referrals,applyTime) {
  return request({
    url: '/crmsys/custStatics/getDailyInnerDatas/' + timeGroup + "/" + deptId+ "/" + referrals+ "/" + applyTime,
    method: 'get'
  })
}
// 日内部数据统计（额度）
export function custdebtlimitdataStatics(timeGroup, deptId) {
  return request({
    url: '/crmsys/custStatics/custdebtlimitdataStatics/' + timeGroup + "/" + deptId,
    method: 'get'
  })
}

// 公共池数据统计
export function publicCustDataStatics(status, level) {
  return request({
    url: '/crmsys/custStatics/publicCustDataStatics/' + status + "/" + level,
    method: 'get'
  })
}

// 团队数据统计
export function teamCustDataStatics(status, level) {
  return request({
    url: '/crmsys/custStatics/teamCustDataStatics/' + status + "/" + level,
    method: 'get'
  })
}

// 拨打数据情况统计
export function getCallCustDatas(timeGroup,empId, deptId) {
  return request({
    url: '/crmsys/custStatics/getCallCustDatas/' + timeGroup + "/" + empId+ "/" + deptId,
    method: 'get'
  })
}
// 成交客户统计报表
export function getTransactionDatas(timeGroup,reportType, deptId) {
  return request({
    url: '/crmsys/custStatics/getTransactionDatas/' + timeGroup + "/" + reportType+ "/" + deptId,
    method: 'get'
  })
}
// 成交客户统计报表
export function getTransactionCustPortraitDatas(timeGroup,reportType, deptId) {
  return request({
    url: '/crmsys/custStatics/getTransactionCustPortraitDatas/' + timeGroup + "/" + reportType+ "/" + deptId,
    method: 'get'
  })
}


// 机构分配来源星级统计
export function getChannelDataStatics(query) {
  return request({
    url: '/crmsys/custStatics/getChannelDataStatics',
    method: 'post',
    data: query
  })
}




